<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>战友活动 - 退役军人服务平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #1a6df0;
            --navy-blue: #0d2b50;
            --secondary: #ff6b00;
            --light-bg: #f5f7fa;
            --white: #ffffff;
            --gray: #6c757d;
            --text-primary: #333;
            --text-secondary: #666;
            --border: #e5e5e5;
        }

        body {
            font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
            background: var(--light-bg);
            color: var(--text-primary);
            padding-bottom: 70px;
        }

        .header {
            background: linear-gradient(135deg, var(--navy-blue) 0%, var(--primary) 100%);
            color: white;
            padding: 15px 20px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
        }

        .filter-tabs {
            background: var(--white);
            padding: 15px 20px;
            display: flex;
            gap: 15px;
            border-bottom: 1px solid var(--border);
        }

        .filter-tab {
            padding: 6px 0;
            font-size: 14px;
            color: var(--text-secondary);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
        }

        .filter-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            font-weight: 600;
        }

        .activity-list {
            margin: 15px;
        }

        .activity-item {
            background: var(--white);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            text-decoration: none;
            color: var(--text-primary);
            display: block;
        }

        .activity-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 10px;
        }

        .activity-title {
            font-size: 16px;
            font-weight: 600;
            flex: 1;
        }

        .activity-status {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            margin-left: 10px;
        }

        .status-ongoing {
            background: #e8f5e9;
            color: #4caf50;
        }

        .status-upcoming {
            background: #e3f2fd;
            color: var(--primary);
        }

        .status-ended {
            background: #f5f5f5;
            color: var(--gray);
        }

        .activity-info {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 10px;
        }

        .activity-meta {
            font-size: 12px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .activity-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 10px;
            border-top: 1px solid var(--border);
        }

        .activity-participants {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .btn-join {
            background: var(--primary);
            color: white;
            border: none;
            padding: 6px 15px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="header-content">
            <div class="header-title">战友活动</div>
            <i class="fas fa-plus" style="cursor: pointer;" onclick="location.href='activity-create.html'"></i>
        </div>
    </div>

    <div class="filter-tabs">
        <div class="filter-tab active">街道活动</div>
        <div class="filter-tab">自发活动</div>
    </div>

    <div class="activity-list">
        <a href="activity-detail.html" class="activity-item">
            <div class="activity-header">
                <div class="activity-title">退役军人篮球友谊赛</div>
                <span class="activity-status status-ongoing">报名中</span>
            </div>
            <div class="activity-info">
                <div class="activity-meta">
                    <i class="fas fa-map-marker-alt"></i>
                    <span>北京市朝阳区体育馆</span>
                </div>
                <div class="activity-meta">
                    <i class="fas fa-clock"></i>
                    <span>2024-03-20 14:00</span>
                </div>
                <div class="activity-meta">
                    <i class="fas fa-ruler"></i>
                    <span>距离您 2.5km</span>
                </div>
            </div>
            <div class="activity-footer">
                <span class="activity-participants">已报名 15/30 人</span>
                <button class="btn-join">立即报名</button>
            </div>
        </a>

        <a href="activity-detail.html" class="activity-item">
            <div class="activity-header">
                <div class="activity-title">退役军人就业指导讲座</div>
                <span class="activity-status status-upcoming">即将开始</span>
            </div>
            <div class="activity-info">
                <div class="activity-meta">
                    <i class="fas fa-map-marker-alt"></i>
                    <span>上海市浦东新区社区中心</span>
                </div>
                <div class="activity-meta">
                    <i class="fas fa-clock"></i>
                    <span>2024-03-25 09:00</span>
                </div>
                <div class="activity-meta">
                    <i class="fas fa-ruler"></i>
                    <span>距离您 5.2km</span>
                </div>
            </div>
            <div class="activity-footer">
                <span class="activity-participants">已报名 28/50 人</span>
                <button class="btn-join">立即报名</button>
            </div>
        </a>

        <a href="activity-detail.html" class="activity-item">
            <div class="activity-header">
                <div class="activity-title">战友聚会 - 重温军旅岁月</div>
                <span class="activity-status status-ongoing">报名中</span>
            </div>
            <div class="activity-info">
                <div class="activity-meta">
                    <i class="fas fa-map-marker-alt"></i>
                    <span>深圳市南山区战友之家</span>
                </div>
                <div class="activity-meta">
                    <i class="fas fa-clock"></i>
                    <span>2024-03-22 18:00</span>
                </div>
                <div class="activity-meta">
                    <i class="fas fa-ruler"></i>
                    <span>距离您 3.8km</span>
                </div>
            </div>
            <div class="activity-footer">
                <span class="activity-participants">已报名 12/20 人</span>
                <button class="btn-join">立即报名</button>
            </div>
        </a>
    </div>
</body>
</html>
